﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlockEngine.Engine.Internal
{
    /// <summary>
    /// Represents 6 Textures that wrap around a cube
    /// </summary>
    class TextureCube
    {
        public readonly Texture[] Cube = new Texture[6]; //Goes Z+, X+, Z-, X-, Y+, Y-
        public TextureCube(Texture[] Textures)
        {
            if (Textures.Length != 6)
                throw new Exception("You are trying to assign more or less than 6 textures to this texture cube!");
            for (int i = 0; i < 5; i++)
            {
                Cube[i] = Textures[i];
            }
        }
        public TextureCube(Texture Tex1, Texture Tex2, Texture Tex3, Texture Tex4, Texture Tex5, Texture Tex6)
        {
            Cube[0] = Tex1;
            Cube[1] = Tex2;
            Cube[2] = Tex3;
            Cube[3] = Tex4;
            Cube[4] = Tex5;
            Cube[5] = Tex6;
        }
    }
}
